package com.vulab.util;

import com.xerox.amazonws.sdb.SimpleDB;
/* **************************************************************************
 * Author: Srinivas Nelakuditi 
 * Company: VU Lab Inc.
 * URL: http://vulab.com
 * Core Competency: IT Training, Management Training & Career Mentoring
 * Blog URL: http://vulab.com/blog
 * forum URL:http://vulab.com/community
 * Date: March 5th 2009
 * 
 * 
 * Please modify the code as you wish and use it in any
 * commercial or free software and distribute it.
 * please keep the above author information intact.
 * 
 *****************************************************************************/


public class SimpleDBUtil
{
	public static final String key ="000000000";
	public static final String secret ="0000000000000000000";
	
	public static SimpleDB getDatabase()
	{		
		if (key.equals("") || secret.equals("")) {
			System.err.println("Please fill in the key and secret with your Amazoin SimpleDB credentials");
			System.err.println("If you don't have credentials, please register with Amazon webservices to get one.");
			System.err.println("Please rememeber that this is a paid service and play around carefully!!");
			System.err.println("Warning: please do not share your secret key or you might end up with a huge bill!");
			System.exit(0);
		}
	    SimpleDB studentDB = new SimpleDB(key,secret);
	    return studentDB;		
	}
	
	
	
}